package com.lin.demo02.InputStream;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class Demo01InputStream {
    public static void main(String[] args) throws IOException {
//        FileInputStream fis = new FileInputStream("/home/public/IdeaProjects/HZLinLearnJava/IOAndProperties/src/com/lin/demo02/InputStream/helloworld");
        FileInputStream fis = new FileInputStream("IOAndProperties/helloworld");
        System.out.println(fis);
        byte[] bytes = new byte[2];
        int len = fis.read(bytes);
        System.out.println(len);

    }
}
